package com.informationsystem.webapp.action;

import java.util.List;

import com.informationsystem.model.News;
import com.informationsystem.model.PictureNews;
import com.informationsystem.service.EventManager;
import com.informationsystem.service.NewsManager;
import com.informationsystem.service.NoticeManager;
import com.informationsystem.service.VideoManager;

public class InfoCenter_Action extends BaseAction {
	private NewsManager newsManager;
	private NoticeManager noticeManager;
	private EventManager eventManager;
	private VideoManager videoManager;
	private List newsList;
	private List noticeList;
	private List eventList;
	private List videoList;
	private News news;
	
	public String list(){
		newsList = newsManager.getTop4NewsList();
		noticeList = noticeManager.getTop12NoticeList();
		eventList = eventManager.getTop3EventList();
		videoList = videoManager.getTop2VideoList();
		setNews(newsManager.getTop1Picturenews());
		return SUCCESS;
	}
	public NewsManager getNewsManager() {
		return newsManager;
	}
	public void setNewsManager(NewsManager newsManager) {
		this.newsManager = newsManager;
	}
	public NoticeManager getNoticeManager() {
		return noticeManager;
	}
	public void setNoticeManager(NoticeManager noticeManager) {
		this.noticeManager = noticeManager;
	}
	public EventManager getEventManager() {
		return eventManager;
	}
	public void setEventManager(EventManager eventManager) {
		this.eventManager = eventManager;
	}
	public VideoManager getVideoManager() {
		return videoManager;
	}
	public void setVideoManager(VideoManager videoManager) {
		this.videoManager = videoManager;
	}
	public List getNewsList() {
		return newsList;
	}
	public void setNewsList(List newsList) {
		this.newsList = newsList;
	}
	public List getNoticeList() {
		return noticeList;
	}
	public void setNoticeList(List noticeList) {
		this.noticeList = noticeList;
	}
	public List getEventList() {
		return eventList;
	}
	public void setEventList(List eventList) {
		this.eventList = eventList;
	}
	public List getVideoList() {
		return videoList;
	}
	public void setVideoList(List videoList) {
		this.videoList = videoList;
	}
	public News getNews() {
		return news;
	}
	public void setNews(News news) {
		this.news = news;
	}
}
